import java.util.Scanner;
public class tem 
{
public static void main (String[] args)

{
Scanner in = new Scanner(System.in) ;
int tem = in.nextInt();
double temp = 9.0/5.0;
double tempp = temp * tem + 32;
System.out.println ( tempp);
}
} 












